﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="buyer_customerList.aspx.cs"
    Inherits="PeisongWeb.buyer_customerList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>采购配送系统-用户管理</title>
    <!--#include file="../global.inc" -->
    <script src="/app_common/scripts/jquery-latest.pack.js" type="text/javascript"></script>
    <script type="text/javascript">
        function resetSrh() {
            document.getElementById("txt_username").value = "";
            document.getElementById("txt_phone").value = "";
        }
    </script>
    <script src="/fromjs/fillscreenFix.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <uc1:headerV2 runat="server" ID="header1" />
        <div id="homemain">
            <div id="main">
                <div class="title">
                    <div class="title_text">
                        <ul>
                            <li class="color1">用户管理</li>
                        </ul>
                    </div>
                </div>
                <div class="line_top">
                </div>
                <div id="mainmiddle">
                    <div class="search_list" style='<%=hasPermission("EB", 2)?"": "display:none"%>'>
                        <div class="search_title">
                            <span>用户管理</span>
                        </div>
                        <div class="listsearch">
                            <ul>
                                <!--  <li>
                                    <label>
                                        登录名：</label>
                                    <input runat="server" id="txt_username" name="" type="text" />
                                </li>
                                <li>
                                    <label>
                                        电话：</label>
                                    <input runat="server" id="txt_phone" name="" type="text" />
                                </li>
                                <li>
                                    <asp:Button runat="server" CssClass="button_round" ID="btn_select" Text="查 询" OnClick="btn_select_Click" />
                                </li>
                                <li>
                                    <input class="button_round" type="button" value="重 置" id="btn_reset" onclick="resetSrh()" />
                                </li>-->
                                <li>
                                    <input class="button_round8" type="button" value="添加新用户" id="add" onclick="window.location.href='buyer_customerEdit.html'" />
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="list_content">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr class="list_title">
                                <td width="15%">
                                    登录名
                                </td>
                                <td width="15%">
                                    姓名
                                </td>
                                <td width="20%">
                                    E-mail
                                </td>
                                <td width="20%">
                                    联系电话
                                </td>
                                <td width="10%" style='<%=hasPermission("EB", 2)?"": "display:none"%>'>
                                    编辑
                                </td>
                                <td width="10%" style='<%=hasPermission("EB", 2)?"": "display:none"%>'>
                                    权限
                                </td>
                                <td width="10%" style='<%=hasPermission("EB", 2)?"": "display:none"%>'>
                                    删除
                                </td>
                            </tr>
                        </table>
                        <table border="0" cellspacing="0" cellpadding="0" class="list_border">
                            <asp:Repeater ID="rpt_list" runat="server" OnItemCommand="rpt_list_ItemCommand">
                                <ItemTemplate>
                                    <tr class='<%# Container.ItemIndex%2==0?"":"tr_color"  %>'>
                                        <td width="15%">
                                            <%# Eval("username")%>
                                        </td>
                                        <td width="15%">
                                            <%# Eval("realname")%>
                                        </td>
                                        <td width="20%">
                                            <%# Eval("email")%>
                                        </td>
                                        <td width="20%">
                                            <%# Eval("phone")%>
                                        </td>
                                        <td width="10%" valign="middle" style='<%=hasPermission("EB", 2)?"": "display:none"%>'>
                                            <a href="buyer_customerEdit<%# Eval("customerId") %>.html">
                                                <img alt="编辑" src="/app_common/images/rwbj.gif" />
                                            </a>
                                        </td>
                                        <td width="10%" valign="middle" style='<%=hasPermission("EB", 2)?"": "display:none"%>'>
                                            <a href="buyer_Permission.html?customer=<%# Eval("customerId") %>">
                                                <img alt="权限设置" src="/app_common/images/pm.png" />
                                            </a>
                                        </td>
                                        <td width="10%" style='<%=hasPermission("EB", 2)?"": "display:none"%>'>
                                            <asp:ImageButton AlternateText="删除" ID="ibtn_delete" runat="server" CommandName="Del"
                                                CommandArgument='<%# Eval("customerId") %>' ImageUrl="/app_common/images/rwsc.gif"
                                                OnClientClick="javascript:return confirm('你确定删除此用户吗?')" Visible='<%#logic.customer.userId==Convert.ToInt32(Eval("customerId"))?false:true%>' />
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                    <div class="page">
                        <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                            AlwaysShow="true" Width="98%" runat="server" PageSize="15" InvalidPageIndexErrorMessage="无效页码"
                            NumericButtonCount="5" PageIndexOutOfRangeErrorMessage="页码超出范围" ShowCustomInfoSection="Left"
                            CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 " CustomInfoTextAlign="Left"
                            HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged" NextPageText=">"
                            FirstPageText="<<首页" LastPageText="末页>>" PrevPageText="<" CssClass="paginator"
                            CurrentPageButtonClass="cpb">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
        </div>
        <uc1:footerV2 runat="server" ID="footer1" />
    </div>
    <input type="hidden" id="hd_customerId" runat="server" />
    </form>
</body>
</html>
